package com.ruoyi.kenuo.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 对象 polo_sms_log
 *
 * @author polo
 * @date 2022-10-19
 */
public class PoloSmsLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String userPhone;

    /** 短信内容 */
    @Excel(name = "短信内容")
    private String content;

    /** 手机验证码 */
    @Excel(name = "手机验证码")
    private String mobileCode;

    /** 短信类型  1：注册  2：验证 */
    @Excel(name = "短信类型  1：注册  2：验证")
    private int type;

    /** 发送短信时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发送短信时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recDate;

    /** 发送短信返回码 */
    @Excel(name = "发送短信返回码")
    private String responseCode;

    /** 状态 1有效  0失效 */
    @Excel(name = "状态 1有效  0失效")
    private int status;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setUserId(String userId)
    {
        this.userId = userId;
    }

    public String getUserId()
    {
        return userId;
    }
    public void setUserPhone(String userPhone)
    {
        this.userPhone = userPhone;
    }

    public String getUserPhone()
    {
        return userPhone;
    }
    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }
    public void setMobileCode(String mobileCode)
    {
        this.mobileCode = mobileCode;
    }

    public String getMobileCode()
    {
        return mobileCode;
    }
    public void setType(int type)
    {
        this.type = type;
    }

    public int getType()
    {
        return type;
    }
    public void setRecDate(Date recDate)
    {
        this.recDate = recDate;
    }

    public Date getRecDate()
    {
        return recDate;
    }
    public void setResponseCode(String responseCode)
    {
        this.responseCode = responseCode;
    }

    public String getResponseCode()
    {
        return responseCode;
    }
    public void setStatus(int status)
    {
        this.status = status;
    }

    public int getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("userPhone", getUserPhone())
            .append("content", getContent())
            .append("mobileCode", getMobileCode())
            .append("type", getType())
            .append("recDate", getRecDate())
            .append("responseCode", getResponseCode())
            .append("status", getStatus())
            .toString();
    }
}
